package org.dexefer.entities;

import org.dexefer.DXFPoint;
import org.dexefer.annotations.DXFPointProperty;
import org.dexefer.annotations.DXFProperty;

public class Rect extends Entity{

	private DXFPoint vert1;
	private DXFPoint vert2;
	private DXFPoint vert3;
	private DXFPoint vert4;
	
	private Line l1;
	private Line l2;
	private Line l3;
	private Line l4;
	
	
	public Rect(DXFPoint v1, DXFPoint v2, DXFPoint v3, DXFPoint v4){
		this.vert1=v1;
		this.vert2=v2;
		this.vert3=v3;
		this.vert4=v4;
		
		l1= new Line(vert1, vert2);
		l2= new Line(vert2, vert3);
		l3= new Line(vert3, vert4);
		l4= new Line(vert4, vert1);
	}
	
	public Line getLine1(){
		return l1;
	}

	public Line getLine2(){
		return l2;
	}
	
	public Line getLine3(){
		return l3;
	}
	
	public Line getLine4(){
		return l4;
	}
	@Override
	public String getEntityMarker() {
		// TODO Auto-generated method stub
		return null;
	}

}
